package com.tjc.cloud.manager.model

import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.index.CompoundIndex
import org.springframework.data.mongodb.core.index.CompoundIndexes
import org.springframework.data.mongodb.core.index.Indexed
import org.springframework.data.mongodb.core.mapping.Document

@Document
@CompoundIndexes(
    CompoundIndex(name = "key&cid",unique=true,def = "{key:1,cid:1}")
)
data class Property(var key: String? = null,
                    var value: Any? = null,
                    var cid: String? = null,
                    @Id
                    var id: String? = null)